import { createStore } from 'vuex'
import storage from "@/utils/storage";


export default createStore({
  state: {
    users: storage.get('users') || {},
    musicInfo: {},
    musicIsPlay: false,
    httpLoading: false,
  },
  mutations: {
    setUsers(state, val) {
      state.users = val
    },
    setMusicInfo(state, val) {
      state.musicInfo = val
    },
    setHttpLoading(state, val) {
      state.httpLoading = val
    },
    setMusicIsPlay(state, val) {
      state.musicIsPlay = val
    },
  },
  actions: {
  },
  modules: {
  }
})
